package com.xiaoyuanxing.demo.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/*
 **@author LuoShengYing
 **@date 2021/5/22
 */
@Mapper
public interface SchoolCollegeMapper {

    // 通过schoolID，查询对应的SchoolCollege数组
    @Select("select `collegeName` from `schoolcollege` where `schoolID` = #{schoolID}")
    List<String> selectListBySchoolID(@Param("schoolID") int schoolID);
}
